package com.jxl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jxl.pojo.vo.DailyWarmPostVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DailyWarmPostMapper extends BaseMapper<DailyWarmPostVO> {
    /**
     * 获取所有每日暖帖
     * @param enable
     * @return
     */
    @Select("select * from daily_warm_posts where is_displayed = #{enable}")
    List<DailyWarmPostVO> getAllDailyWarmPosts(Integer enable);
}
